<template>
  <div>
    <p>父组件当前的值： {{ number }}</p>
    <CustonSubComponent @update-count="updateEmitCount" />
  </div>
</template>

<script setup>
import CustonSubComponent from "./CustonSubComponent.vue";
import { ref } from "vue";
const number = ref(10);
const updateEmitCount = (value) => {
  number.value += value;
};
</script>

<style lang="scss" scoped></style>
